FROM ultralytics/yolov5:latest-arm64

WORKDIR /opt


RUN sed -i 's/security.ubuntu.com/mirrors.cloud.tencent.com/g'  /etc/apt/sources.list
RUN sed -i 's/archive.ubuntu.com/mirrors.cloud.tencent.com/g'  /etc/apt/sources.list

RUN apt-get update

RUN apt install -y libsm6 libxext6 libxrender-dev git unzip vim llvm-dev  libgl1-mesa-glx libglib2.0-dev

ADD ./requirements.txt .
RUN pip3 install -i https://mirrors.cloud.tencent.com/pypi/simple -r ./requirements.txt

WORKDIR /root/.jupyter
ADD ./jupyter_notebook_config.py .

RUN mkdir /ntt
WORKDIR /ntt